﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SF.Ucenter.door
{
    public partial class function_introduce : System.Web.UI.Page
    {
        protected string activePicStr = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                loadData();
            }
        }

        /// <summary>
        /// 绑定活动页面
        /// </summary>
        private void loadData()
        {
            BLL.sf_door_function funcBll = new BLL.sf_door_function();
            DataTable dt = funcBll.GetList(0," status=0 ", "sort asc").Tables[0];
            foreach (DataRow r in dt.Rows)
            {
                string remark = r["remarks"].ToString().Replace("&lt;", "<").Replace("&gt;", ">").Replace("@name", r["name"].ToString());
                activePicStr += "<div class='probox1' style='background:" + r["bgColor"] + "'><div class='procon1'>" + remark + "<img src='" + r["pics"] + "' /></div></div>";
            }
        }
    }
}